package chen.web.antispam;

import chen.web.user.Account;

/**
 * 帐号特征
 * @author chen
 *
 */
class AccountCharacteristic extends Characteristic{

	private Account account = null;
	AccountCharacteristic(Account account){
		this.account = account;
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((account == null) ? 0 : account.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AccountCharacteristic other = (AccountCharacteristic) obj;
		if (account == null) {
			if (other.account != null)
				return false;
		} else if (!account.equals(other.account))
			return false;
		return true;
	}
	

}
